package com.example.courier.controller;

import com.example.courier.model.resp.DeliveryOrderVO;
import com.example.courier.service.DeliveryOrderService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author qwert
 * @version 1.0.0
 * @create 2025/9/7 21:33
 **/
@RestController
@RequestMapping("/api/delivery/admin/orders")
@RequiredArgsConstructor
public class AdminDeliveryController {
    private final DeliveryOrderService deliveryOrderService;

    @GetMapping("/list")
    public List<DeliveryOrderVO> getDeliveryOrderByUserId() {
        return deliveryOrderService.getDeliveryOrderByUserId(null);
    }

    // 起点 -> 终点
}
